export default {
    component: 'jzlChartCard',
    icon: 'fa fa-credit-card',
    name: '指标卡',

    box_style: {
        _name: 'Box',
        _fix: "all",
        _ss: {
            "flexDirection": "column"
        },
        header: {
            _fix: true,
            title: {
                _fix: true,
                _ss: {
                    "text": "指标统计"
                }
            },
            icon: {
                _fix: true,
                _ss: {
                    icon: "fa fa-credit-card"
                }
            },
            refresh: {
                _fix: true,
                _ss: {
                    "display": "block"
                }
            },
            more: {
                _ss: {
                    "display": "none"
                }
            }
        }
    },
    ele_style: {
        _name: '指标卡',
        _render: '_ele',
        _fix: "all",
        _ss: {
            // "marginType": "set",
            "marginTop": "0",
            "marginRight": "0",
            "marginBottom": "0",
            "marginLeft": "0",
            "height": "100%"
        },
        _sh: {},
        _rh: false,
        _sort: [ 'item' ],
        item: {
            _name: '指标卡项',
            _render: '_item',
            _ss: {
                // "marginType": "set",
                "paddingTop": "10",
                "paddingRight": "20",
                "paddingBottom": "10",
                "paddingLeft": "20"
            },
            _sh: {},
            _rh: false,
            _sort: [ 'label', 'value' ],
            label: {
                _name: '指标名',
                _render: '_label',
                _node: 'text',
                _ss: {
                    // "marginType": "set",
                    "fontType": "set",
                    "fontSize": 12,
                    "color": "#CCC",
                    "lineHeight": 1.5
                },
                _sh: {},
                _rh: false,
            },
            value: {
                _name: '指标值',
                _render: '_value',
                _node: 'text',
                _ss: {
                    // "marginType": "set",
                    "fontType": "set",
                    "fontSize": 18,
                    "color": "333"
                },
                _sh: {},
                _rh: false,
            }
        }
    },
    setting: {
        sticky: false,
        chartTheme: "",      // card | table
    },
    vars: [{
        prop: "model",
        type: "table",
        default: null,
        force: true,
        initType: "static",
        defaultTable: [
            [ "年销售额", "1999" ],
            [ "年利润额", "999" ]
        ]
    }],
    data_fieldsmap: {},
    data_schema: {},
    data_type: 'static',    // static | dync
    /*data_static: {
        source: [
            [ "年销售额", "1999" ],
            [ "年利润额", "999" ]
        ]
    }*/
}
